Skip to content

セッション Fork 機能の追加#24

Merged
ktmage merged 4 commits into
developmentfrom
feature/14/session-fork
Feb 28, 2026
Merged

セッション Fork 機能の追加#24
ktmage merged 4 commits into
developmentfrom
feature/14/session-fork

Conversation

@ktmage

@ktmage ktmage commented Feb 28, 2026

Copy link
Copy Markdown
Owner

概要

会話の途中地点から分岐して新しいセッションを作成できる「セッション Fork」機能を追加する。

Closes #14

変更内容

SDK・プロトコル層

  • OpenCodeConnectionforkSession() メソッドを追加(session.fork API)
  • WebviewToExtMessageforkSession メッセージ型を追加
  • ChatViewProvider で Fork → アクティブセッション切替 → セッション一覧更新を処理

UI 層

  • ForkIcon コンポーネントを追加(codicon: repo-forked)
  • チェックポイント区切り線に「Fork from here」ボタンを追加(既存の「Retry from here」の隣)
  • AppContextonForkFromCheckpoint を追加
  • ボタンのホバースタイルを個別ハイライトに修正
  • ロケールキー追加(en: "Fork from here" / ja: "ここから分岐")

テスト

  • MessagesArea 単体テストを拡充(Fork ボタン表示・クリックハンドラ等 5 件追加)
  • 16-session-fork シナリオテストを新規追加(Fork フロー・メッセージ送信・セッション切替 4 件)

チェックリスト

  • npm run build パス
  • npm test パス(719 テスト)
  • npm run check 新規エラーなし

ktmage added 3 commits March 1, 2026 04:29
- Add forkSession() to OpenCodeConnection (session.fork API)
- Add forkSession message type to WebviewToExtMessage
- Handle forkSession in chat-view-provider (fork, switch, refresh)
- Add ForkIcon component
- Add checkpoint.forkFromHere locale key (en/ja)
- Add Fork button alongside Retry in checkpoint divider
- Add onForkFromCheckpoint handler in App and AppContext
- Fix hover style to highlight buttons individually
- Expand MessagesArea tests (fork button render, click handler)
- Add 16-session-fork scenario test (fork flow, message, session switch)
@ktmage ktmage changed the title Feature/14/session-fork セッション Fork 機能の追加 Feb 28, 2026
@ktmage ktmage linked an issue Feb 28, 2026 that may be closed by this pull request
@ktmage ktmage marked this pull request as ready for review February 28, 2026 19:34
@ktmage ktmage self-assigned this Feb 28, 2026
@ktmage ktmage merged commit 605ae3e into development Feb 28, 2026
1 check passed
@ktmage ktmage deleted the feature/14/session-fork branch March 1, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

セッション Fork 機能の追加

1 participant